package com.ming.base.authority.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.ming.base.authority.dao.UserDao;
import com.ming.base.authority.po.SysUserPO;
import com.ming.base.authority.service.IUserService;
import com.ming.core.exception.BaseException;
@Service("userService")
public class UserService implements IUserService {
	 //private final static Logger logger = LoggerFactory.getLogger(UserService.class); 
	@Resource(name="userDao")
	private UserDao userDao;
	@Override
	public SysUserPO getUser(String id) throws BaseException {
		return userDao.getUser(id);
	}
	@Override
	public SysUserPO getUserByName(String name) throws BaseException {
		return userDao.getUserByName(name);
	}

}
